﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThisGrayWorldAI
{
    public static class Client
    {
    }


    public partial class ClientServerInterface
    {
        private static ClientServerInterface()
        {
            RuntimeProperties.SessionGuid = Guid.NewGuid();
            ReadXmlConfig();
            LaunchServer();
        }

        public static void LaunchServer()
        {
            var Server = AppDomain.CreateDomain(RuntimeProperties.ServerAppDomainName);
            Server.SetData(RuntimeProperties.CrossDomainSingletonName, CrossDomainSingleton.Instance);

            RuntimeProperties.ServerDomain = Server;
            RuntimeProperties.ServerDomainHashCode = Server.GetHashCode();
        }
    }

}
